<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

    <!--<script src="js/模块模式.js"></script>-->
    <!--<script src="js/暴露模块模式.js"></script>-->
    <!--<script src="js/创建同一个单例模式.js"></script>-->
    <script src="js/创建不同的单例实例.js"></script>
    <script>
//        myRevealingModule.start();
//        console.log(myRevealingModule.count());
        var singleA=myBadSingleton.getInstance();
        var singleB=myBadSingleton.getInstance();
        console.log(singleA.getRandomNumber()===singleB.getRandomNumber()) //false
    </script>
</body>
</html>